<?php
namespace Common\Model;
use Common\Common\Model;
class resumeModel extends Model {
        protected $tableName = 'resume';
        protected $tablePrimary = ['id'];

        protected $odjectClass='Common\Model\resumeObject';
        /**
         * 用户登录标记
         * @param CustomerObject $user
         */
        public function login(CustomerObject $user){
                $_SESSION['id'] = $user->ID;
                $_SESSION['username'] = $user->username;
        }

        public function test(){
                $user2=$_SESSION['id'];
                return  $user2;
        }
        /**
         * 用户投递标记
         * @param CustomerObject $user
         */

        public function test1(){
                $user2=$_SESSION['username'];
                return  $user2;
        }
}